#include"UnorderedMap.h"

void test1(){
    MyMap::UnorderedMap<int,int> hash;
    hash.insert(make_pair(12,12));
    hash.insert(make_pair(1,1));
    hash.insert(make_pair(22,22));
    hash.insert(make_pair(17,17));

    auto it=hash.begin();
    while(it!=hash.end()){
        cout<<it->first<<":"<<it->second<<endl;
        ++it;
    }
    cout<<endl;
    
    hash[1]=100;
    hash[20];

    for(const auto& e : hash){
        cout<<e.first<<":"<<e.second<<endl;
    }


}

int main(){
    test1();
    return 0;
}